package com.jming.yygh.hosp.repository;

import com.jming.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author jming
 * @date 2021-04-22
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital, String> {
    /**
     * 判断是否存在数据
     * @param hosCode 医院号码
     * @return 查询的数据结果
     */
    Hospital getHospitalByHosCode(String hosCode);

    List<Hospital> findHospitalByHosNameLike(String hosname);
}
